Skip to content

Implement the sprint-sync script#4803

Merged
happz merged 20 commits intomainfrom
psss-sync-sprint-to-jira
Apr 22, 2026
Merged

Implement the sprint-sync script#4803
happz merged 20 commits intomainfrom
psss-sync-sprint-to-jira

Conversation

@psss
Copy link
Copy Markdown
Member

@psss psss commented Apr 16, 2026

Implement an easy way to sync github sprint items into the Jira sprint. Removed items are dropped, new items are added. Search for the right Jira issue is done using remoteLinkUrl but since it does not work always (e.g. when the index it outdated) fallback using the summary is included. Duplicate issues, when detected during the search, are reported as well.

Fix #4671.

Assisted-by: Claude

Pull Request Checklist

  • implement the feature
  • write the documentation

@psss psss added the area | automation Tools, actions and workflows automating our work label Apr 16, 2026
@psss psss added this to planning Apr 16, 2026
@github-project-automation github-project-automation Bot moved this to backlog in planning Apr 16, 2026
@psss psss moved this from backlog to review in planning Apr 16, 2026
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a new sprint-sync script to synchronize Jira sprints with GitHub items and refactors the Item dataclass into a shared common.py module. Feedback focuses on improving the robustness of Jira key parsing and batching API calls for moving or adding issues to reduce overhead.

Comment thread scripts/sprint-sync Outdated
Comment thread scripts/sprint-sync Outdated
Comment thread scripts/sprint-sync Outdated
@psss
Copy link
Copy Markdown
Member Author

psss commented Apr 16, 2026

Here's an example output:

sprint-sync

@psss psss force-pushed the psss-sync-sprint-to-jira branch from 1157306 to ab8f88b Compare April 16, 2026 14:22
Comment thread scripts/sprint-sync Outdated
Comment thread scripts/sprint-overview Outdated
Comment thread scripts/sprint-sync
Comment thread scripts/sprint-sync Outdated
Comment thread scripts/sprint-sync Outdated
Comment thread scripts/sprint-sync Outdated
Comment thread scripts/sprint-sync Outdated
Comment thread scripts/sprint-sync Outdated
Comment thread scripts/sprint-sync Outdated
Comment thread scripts/sprint-sync Outdated
Comment thread scripts/sprint-sync Outdated
Comment thread scripts/sprint-sync Outdated
Comment thread scripts/sprint-sync Outdated
@AthreyVinay
Copy link
Copy Markdown
Member

@psss A very naive question: Is syncing GitHub sprints to Jira a problem other Red Hat teams face too? I'd imagine so — is there any company-wide effort to solve this, or is this intentionally a quick team-specific solution for now?

@psss psss added this to the 1.72 milestone Apr 20, 2026
@psss psss moved this from review to implement in planning Apr 20, 2026
@psss psss force-pushed the psss-sync-sprint-to-jira branch from ab8f88b to 0e0b81c Compare April 20, 2026 15:36
@psss
Copy link
Copy Markdown
Member Author

psss commented Apr 20, 2026

Is syncing GitHub sprints to Jira a problem other Red Hat teams face too? I'd imagine so — is there any company-wide effort to solve this, or is this intentionally a quick team-specific solution for now?

Good question, @AthreyVinay! Yeah, this is basically just a quick hack for us. I don't know of any other team. I expect that most teams do the planning activities directly in Jira. But let's check! Maybe there's more people with a similar use case and we could collaborate on this.

@psss psss requested review from LecrisUT and happz April 20, 2026 15:55
@AthreyVinay
Copy link
Copy Markdown
Member

Maybe there's more people with a similar use case and we could collaborate on this.

Makes sense - the ask looks good :)

@psss psss moved this from implement to review in planning Apr 21, 2026
Copy link
Copy Markdown
Member

@LecrisUT LecrisUT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good enough to me now.

@happz
Copy link
Copy Markdown
Contributor

happz commented Apr 21, 2026

@psss "write the documentation" checkbox is not complete yet, is it something you plan to address?

@psss
Copy link
Copy Markdown
Member Author

psss commented Apr 21, 2026

@psss "write the documentation" checkbox is not complete yet, is it something you plan to address?

Ah, right, forgot. Thanks for reminding. Wanted to add a brief documentation mentioning the two sprint scripts. Done in aa3a4a0.

@psss psss added the documentation Improvements or additions to documentation label Apr 21, 2026
@happz
Copy link
Copy Markdown
Contributor

happz commented Apr 21, 2026

/packit rebuild

@packit-as-a-service
Copy link
Copy Markdown

There appears to be a syntax error in the command provided. Please refer to the Packit documentation or use the /packit help command.

@happz
Copy link
Copy Markdown
Contributor

happz commented Apr 21, 2026

/packit build

Copy link
Copy Markdown

@thrix-bot thrix-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some review comments from Claude Code below

Comment thread scripts/sprint-sync
Comment thread scripts/sprint-sync Outdated
Comment thread scripts/sprint-sync
@teemtee teemtee deleted a comment from thrix-bot Apr 21, 2026
@psss psss requested review from thrix and removed request for thrix-bot April 22, 2026 10:18
@thrix thrix requested a review from thrix-bot April 22, 2026 13:31
@psss psss moved this from review to merge in planning Apr 22, 2026
@happz happz force-pushed the psss-sync-sprint-to-jira branch from 6796e44 to 10d8d6a Compare April 22, 2026 14:07
@happz
Copy link
Copy Markdown
Contributor

happz commented Apr 22, 2026

Script-only, no need for more tests. Merging.

@happz happz merged commit 3091c54 into main Apr 22, 2026
19 checks passed
@happz happz deleted the psss-sync-sprint-to-jira branch April 22, 2026 15:22
@github-project-automation github-project-automation Bot moved this from merge to done in planning Apr 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area | automation Tools, actions and workflows automating our work documentation Improvements or additions to documentation

Projects

Status: done

Development

Successfully merging this pull request may close these issues.

Sync github sprint to Jira sprint

6 participants